package com.xl.lib;



import com.badlogic.gdx.ApplicationListener; 
import com.badlogic.gdx.Gdx; 
import com.badlogic.gdx.graphics.GL10; 
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.Texture;

public class FirstGame implements ApplicationListener
{ 
FirstGame()
{
	super();
//	bf=new BitmapFont();
}
//BitmapFont bf;
	//绘图用的SpriteBatch 
	private SpriteBatch batch; 
	private Texture texture;
	@Override
	public void create()
	{ 
		batch=new SpriteBatch(); //实例化 
		texture = new Texture(Gdx.files.internal("ic_launcher.png"));
	}

	@Override
	public void dispose()
	{ 
		// TODO Auto-generated method stub
        batch.dispose();
	}

	@Override
	public void pause()
	{ 
		// TODO Auto-generated method stub

	}

	@Override
	public void render()
	{ 
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); //清屏 
		batch.begin(); 
		//batch.dispose();
		batch.draw(texture,78,38);
		
		batch.end(); 
	}

	@Override
	public void resize(int width,int height)
	{ 
		// TODO Auto-generated method stub

	}

	@Override
	public void resume()
	{ 
		// TODO Auto-generated method stub

	}

}
